import request from './request';

export function getOrderList(params) {
  return request({
    url: '/order',
    method: 'get',
    params
  });
}

export function getOrderById(id) {
  return request({
    url: `/order/${id}`,
    method: 'get'
  });
}

export function createOrder(data) {
  return request({
    url: '/order/create',
    method: 'post',
    data
  });
}
